<body>
<script language='javascript'>
<!--
//change_move();
// 게시판 선택
//function change_move()
//{
//	var choice = $("#new_ebcfid option:selected").text();
//	if(choice == '') choice = "관람후기";
//
//	$("input[name='board_name']").val(choice);
//}
// 게시물 이동
function goto_submit()
{	
	//var ebcf_id = $("input[name='new_ebcfid']").val();
	var ebcf_id = $("#new_ebcfid option:selected").val();
	var board_name = $("#new_ebcfid option:selected").text();

	if (ebcf_id != '')
	{
		if (confirm('선택한 게시물을 ' + board_name + ' (으)로 이동합니다.')) 
		{
			document.move_form.submit();
		}
		return false;
	}
	else
	{
		window.alert('선택하신 게시판이 없습니다.');
		return false;
	}
}
//-->
</script>
<br>

<form name="move_form" id="move_form" method='post' action="<?=$EzbbsManager->get_url_root()?>/index.php" target="form_receiver" onsubmit="goto_submit(); return false;">
<table cellspacing="0" border="0" width="430" summary="이동대상 게시판 기능목록">
	<tr height="35">
		<td colspan="3" style="text-align:center;"><strong> 게시물의 이동 대상 게시판을 선택하세요! </strong></td>
	</tr>
	<tr>
		<td style="width:120px;text-align:right;"><strong>게시판</strong></td>
		<td width="140px;"><?=$Html->select_form('new_ebcfid', $border_list, '', 'ebcf_id', 'ebcf_pname', 'change_move()');?></td>
		<td><img src="/images/common/move_button.gif" alt="이동|닫기" usemap="#move_map" /></td>
	</tr>  
</table>

<input type="hidden" name="job" value="move" />
<input type="hidden" name="subjob" value="ok" />
<input type='hidden' name="old_ebcfid" value="<?=$old_ebcfid?>" /> 
<input type='hidden' name="select_list" value="<?=$select_list?>" />
<input type='hidden' name="board_name" value="" />
<?php foreach ($paras as $k => $v) { ?><input type="hidden" name="<?=$k?>" value="<?=$v?>" /><?php } ?>
<map name="move_map" id="move_map">
	<area shape="rect" coords="0,0,42,27" href="/" onclick="goto_submit(); return false;" alt="이동" />
	<area shape="rect" coords="42,0,84,27" href="/" onclick="window.close();" alt="닫기" />
</map>
</form>

